From 01e516a441e765334ffa6f0001a4031498972341 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=3D=3FUTF-8=3Fq=3FFabi=3DC3=3DA1n=3D20Ezequiel=3D20Gallina?= =?utf8?q?=3F=3D?= Date: Thu, 17 May 2012 00:02:58 -0300 Subject: [PATCH] Make shell use completion-at-point for autocompletion. --- lisp/progmodes/python.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 78b541d8a0e..af441460562 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -946,6 +946,10 @@ OUTPUT is a string with the contents of the buffer." 'python-pdbtrack-comint-output-filter-function) (set (make-local-variable 'compilation-error-regexp-alist) python-shell-compilation-regexp-alist) + (define-key inferior-python-mode-map [remap complete-symbol] + 'completion-at-point) + (add-hook 'completion-at-point-functions + 'python-shell-completion-complete-at-point nil 'local) (compilation-shell-minor-mode 1)) (defun run-python (dedicated cmd) -- 2.30.2